/*
 *
 * 名称：六气
 * 功能：五运六气中六气属性配置
 * 作者：清河张
 * 时间：2025.05.11
 *
 */

#ifndef LIUQI_H
#define LIUQI_H
#include "base/zhouqi.h"

class YY6_T : public CT //六阴阳
{
public:
    enum EYY6{
        JUEEYINN, SHAOYINN, TAIYINNN,
        SHAOYANG, YANGMING, TAIYANGG,
        YYLIU___ = INVALIDID
    };
    //默认构造函数
    YY6_T();
    YY6_T(int id, const char* name);
private:
};

typedef ZHOUQI<YY6_T, 6> YY6;

class LIUQI_T : public CT
{
public:
    enum ELIUQI{
        FENG, SHUU, HUOO,
        SHII, ZAOO, HANN,
        QI6_ = INVALIDID
    };

    LIUQI_T();
    LIUQI_T(int id, const char* name);

};

typedef ZHOUQI<LIUQI_T, 6> LIUQI6;


class YY6QI6
{
public:
    static const YY6QI6& fromid(int id);//编号找对象
    static const YY6QI6& fromzq(int zq);//主气找对象
    static const YY6QI6& fromkq(int kq);//客气找对象

    const char* name() const;//名称
    int zq() const;//主气编号
    int kq() const;//客气编号
    int id() const;//当前气编号
    //默认构造函数
    YY6QI6();
private:
    //全参数构造函数，默认属性配置
    YY6QI6 (int id, int zq, int kq, const char* name);
    int _id, _zq, _kq;
    const char* _name;

    static const YY6QI6 _objs[6];
};



#endif // LIUQI_H
